package com.ruoyi.orientation.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.orientation.mapper.OrientationMapper;
import com.ruoyi.orientation.domain.Orientation;
import com.ruoyi.orientation.service.IOrientationService;

/**
 * 朝向表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-12
 */
@Service
public class OrientationServiceImpl implements IOrientationService 
{
    @Autowired
    private OrientationMapper orientationMapper;

    /**
     * 查询朝向表
     * 
     * @param id 朝向表主键
     * @return 朝向表
     */
    @Override
    public Orientation selectOrientationById(Long id)
    {
        return orientationMapper.selectOrientationById(id);
    }

    /**
     * 查询朝向表列表
     * 
     * @param orientation 朝向表
     * @return 朝向表
     */
    @Override
    public List<Orientation> selectOrientationList(Orientation orientation)
    {
        return orientationMapper.selectOrientationList(orientation);
    }

    /**
     * 新增朝向表
     * 
     * @param orientation 朝向表
     * @return 结果
     */
    @Override
    public int insertOrientation(Orientation orientation)
    {
        return orientationMapper.insertOrientation(orientation);
    }

    /**
     * 修改朝向表
     * 
     * @param orientation 朝向表
     * @return 结果
     */
    @Override
    public int updateOrientation(Orientation orientation)
    {
        return orientationMapper.updateOrientation(orientation);
    }

    /**
     * 批量删除朝向表
     * 
     * @param ids 需要删除的朝向表主键
     * @return 结果
     */
    @Override
    public int deleteOrientationByIds(Long[] ids)
    {
        return orientationMapper.deleteOrientationByIds(ids);
    }

    /**
     * 删除朝向表信息
     * 
     * @param id 朝向表主键
     * @return 结果
     */
    @Override
    public int deleteOrientationById(Long id)
    {
        return orientationMapper.deleteOrientationById(id);
    }
}
